package com.zhan.easyexcelorder.vo;

import com.zhan.easyexcelorder.model.SysDepartment;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class SysUserVO implements java.io.Serializable {
    private static final long serialVersionUID = -4494870561731052719L;

    private Long id;
    private String username;
    private String phone;
    @ApiModelProperty("上班普席工号")
    private String generalCode;
    @ApiModelProperty("抢班普席工号")
    private String snatchCode;
    private Long roleId;
    private String roleName;
    private Long deptId;
    private String deptName;
    private String fullDepartmentName;
    private SysDepartment department;

    public SysUserVO(Long id, String username, String phone, Long roleId, String roleName) {
        this.id = id;
        this.username = username;
        this.phone = phone;
        this.roleId = roleId;
        this.roleName = roleName;
    }

    public SysUserVO(Long id, String username, String phone, String generalCode, String snatchCode, Long deptId, String deptName, String fullDepartmentName) {
        this.id = id;
        this.username = username;
        this.phone = phone;
        this.generalCode = generalCode;
        this.snatchCode = snatchCode;
        this.deptId = deptId;
        this.deptName = deptName;
        this.fullDepartmentName = fullDepartmentName;
        this.department = new SysDepartment();
        this.department.setDeptName(deptName);
        this.department.setFullDepartmentName(fullDepartmentName);
        this.department.setId(deptId);
    }
}
